/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.menu;

import actions.menu.OpenArticleAction;
import actions.menu.OpenGroupAction;
import actions.menu.OpenSuppliersAction;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import model.gui.MenuModel;

/**
 *
 * @author Gebruiker
 */
public class Menu extends JMenuBar {
    
    public Menu(MenuModel model){
        JMenu manageMenu = new JMenu("Beheer");
        manageMenu.setFont(new java.awt.Font("Tahoma", 0, 14));
        JMenuItem supplierItem = new JMenuItem("Leveranciers");
        supplierItem.setFont(new java.awt.Font("Tahoma", 0, 14));
        manageMenu.add(supplierItem);
        supplierItem.addActionListener(new OpenSuppliersAction(model));
        
        JMenuItem articleItem = new JMenuItem("Artikels");
        articleItem.setFont(new java.awt.Font("Tahoma", 0, 14));
        manageMenu.add(articleItem);
        articleItem.addActionListener(new OpenArticleAction(model));
        
        JMenuItem groupItem = new JMenuItem("Groepen");
        groupItem.setFont(new java.awt.Font("Tahoma", 0, 14));
        manageMenu.add(groupItem);
        groupItem.addActionListener(new OpenGroupAction(model));
        this.add(manageMenu);
    }
    
}
